package com.lxk.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PointGoodsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PointGoodsExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPointGoodsIdIsNull() {
            addCriterion("point_goods_id is null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsIdIsNotNull() {
            addCriterion("point_goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsIdEqualTo(Integer value) {
            addCriterion("point_goods_id =", value, "pointGoodsId");
            return (Criteria) this;
        }

        public Criteria andPointGoodsIdNotEqualTo(Integer value) {
            addCriterion("point_goods_id <>", value, "pointGoodsId");
            return (Criteria) this;
        }

        public Criteria andPointGoodsIdGreaterThan(Integer value) {
            addCriterion("point_goods_id >", value, "pointGoodsId");
            return (Criteria) this;
        }

        public Criteria andPointGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("point_goods_id >=", value, "pointGoodsId");
            return (Criteria) this;
        }

        public Criteria andPointGoodsIdLessThan(Integer value) {
            addCriterion("point_goods_id <", value, "pointGoodsId");
            return (Criteria) this;
        }

        public Criteria andPointGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("point_goods_id <=", value, "pointGoodsId");
            return (Criteria) this;
        }

        public Criteria andPointGoodsIdIn(List<Integer> values) {
            addCriterion("point_goods_id in", values, "pointGoodsId");
            return (Criteria) this;
        }

        public Criteria andPointGoodsIdNotIn(List<Integer> values) {
            addCriterion("point_goods_id not in", values, "pointGoodsId");
            return (Criteria) this;
        }

        public Criteria andPointGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("point_goods_id between", value1, value2, "pointGoodsId");
            return (Criteria) this;
        }

        public Criteria andPointGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("point_goods_id not between", value1, value2, "pointGoodsId");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameIsNull() {
            addCriterion("point_goods_name is null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameIsNotNull() {
            addCriterion("point_goods_name is not null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameEqualTo(String value) {
            addCriterion("point_goods_name =", value, "pointGoodsName");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameNotEqualTo(String value) {
            addCriterion("point_goods_name <>", value, "pointGoodsName");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameGreaterThan(String value) {
            addCriterion("point_goods_name >", value, "pointGoodsName");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameGreaterThanOrEqualTo(String value) {
            addCriterion("point_goods_name >=", value, "pointGoodsName");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameLessThan(String value) {
            addCriterion("point_goods_name <", value, "pointGoodsName");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameLessThanOrEqualTo(String value) {
            addCriterion("point_goods_name <=", value, "pointGoodsName");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameLike(String value) {
            addCriterion("point_goods_name like", value, "pointGoodsName");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameNotLike(String value) {
            addCriterion("point_goods_name not like", value, "pointGoodsName");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameIn(List<String> values) {
            addCriterion("point_goods_name in", values, "pointGoodsName");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameNotIn(List<String> values) {
            addCriterion("point_goods_name not in", values, "pointGoodsName");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameBetween(String value1, String value2) {
            addCriterion("point_goods_name between", value1, value2, "pointGoodsName");
            return (Criteria) this;
        }

        public Criteria andPointGoodsNameNotBetween(String value1, String value2) {
            addCriterion("point_goods_name not between", value1, value2, "pointGoodsName");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicIsNull() {
            addCriterion("point_goods_pic is null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicIsNotNull() {
            addCriterion("point_goods_pic is not null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicEqualTo(String value) {
            addCriterion("point_goods_pic =", value, "pointGoodsPic");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicNotEqualTo(String value) {
            addCriterion("point_goods_pic <>", value, "pointGoodsPic");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicGreaterThan(String value) {
            addCriterion("point_goods_pic >", value, "pointGoodsPic");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicGreaterThanOrEqualTo(String value) {
            addCriterion("point_goods_pic >=", value, "pointGoodsPic");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicLessThan(String value) {
            addCriterion("point_goods_pic <", value, "pointGoodsPic");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicLessThanOrEqualTo(String value) {
            addCriterion("point_goods_pic <=", value, "pointGoodsPic");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicLike(String value) {
            addCriterion("point_goods_pic like", value, "pointGoodsPic");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicNotLike(String value) {
            addCriterion("point_goods_pic not like", value, "pointGoodsPic");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicIn(List<String> values) {
            addCriterion("point_goods_pic in", values, "pointGoodsPic");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicNotIn(List<String> values) {
            addCriterion("point_goods_pic not in", values, "pointGoodsPic");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicBetween(String value1, String value2) {
            addCriterion("point_goods_pic between", value1, value2, "pointGoodsPic");
            return (Criteria) this;
        }

        public Criteria andPointGoodsPicNotBetween(String value1, String value2) {
            addCriterion("point_goods_pic not between", value1, value2, "pointGoodsPic");
            return (Criteria) this;
        }

        public Criteria andPointGoodsCostIsNull() {
            addCriterion("point_goods_cost is null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsCostIsNotNull() {
            addCriterion("point_goods_cost is not null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsCostEqualTo(Integer value) {
            addCriterion("point_goods_cost =", value, "pointGoodsCost");
            return (Criteria) this;
        }

        public Criteria andPointGoodsCostNotEqualTo(Integer value) {
            addCriterion("point_goods_cost <>", value, "pointGoodsCost");
            return (Criteria) this;
        }

        public Criteria andPointGoodsCostGreaterThan(Integer value) {
            addCriterion("point_goods_cost >", value, "pointGoodsCost");
            return (Criteria) this;
        }

        public Criteria andPointGoodsCostGreaterThanOrEqualTo(Integer value) {
            addCriterion("point_goods_cost >=", value, "pointGoodsCost");
            return (Criteria) this;
        }

        public Criteria andPointGoodsCostLessThan(Integer value) {
            addCriterion("point_goods_cost <", value, "pointGoodsCost");
            return (Criteria) this;
        }

        public Criteria andPointGoodsCostLessThanOrEqualTo(Integer value) {
            addCriterion("point_goods_cost <=", value, "pointGoodsCost");
            return (Criteria) this;
        }

        public Criteria andPointGoodsCostIn(List<Integer> values) {
            addCriterion("point_goods_cost in", values, "pointGoodsCost");
            return (Criteria) this;
        }

        public Criteria andPointGoodsCostNotIn(List<Integer> values) {
            addCriterion("point_goods_cost not in", values, "pointGoodsCost");
            return (Criteria) this;
        }

        public Criteria andPointGoodsCostBetween(Integer value1, Integer value2) {
            addCriterion("point_goods_cost between", value1, value2, "pointGoodsCost");
            return (Criteria) this;
        }

        public Criteria andPointGoodsCostNotBetween(Integer value1, Integer value2) {
            addCriterion("point_goods_cost not between", value1, value2, "pointGoodsCost");
            return (Criteria) this;
        }

        public Criteria andPointGoodsStockIsNull() {
            addCriterion("point_goods_stock is null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsStockIsNotNull() {
            addCriterion("point_goods_stock is not null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsStockEqualTo(Integer value) {
            addCriterion("point_goods_stock =", value, "pointGoodsStock");
            return (Criteria) this;
        }

        public Criteria andPointGoodsStockNotEqualTo(Integer value) {
            addCriterion("point_goods_stock <>", value, "pointGoodsStock");
            return (Criteria) this;
        }

        public Criteria andPointGoodsStockGreaterThan(Integer value) {
            addCriterion("point_goods_stock >", value, "pointGoodsStock");
            return (Criteria) this;
        }

        public Criteria andPointGoodsStockGreaterThanOrEqualTo(Integer value) {
            addCriterion("point_goods_stock >=", value, "pointGoodsStock");
            return (Criteria) this;
        }

        public Criteria andPointGoodsStockLessThan(Integer value) {
            addCriterion("point_goods_stock <", value, "pointGoodsStock");
            return (Criteria) this;
        }

        public Criteria andPointGoodsStockLessThanOrEqualTo(Integer value) {
            addCriterion("point_goods_stock <=", value, "pointGoodsStock");
            return (Criteria) this;
        }

        public Criteria andPointGoodsStockIn(List<Integer> values) {
            addCriterion("point_goods_stock in", values, "pointGoodsStock");
            return (Criteria) this;
        }

        public Criteria andPointGoodsStockNotIn(List<Integer> values) {
            addCriterion("point_goods_stock not in", values, "pointGoodsStock");
            return (Criteria) this;
        }

        public Criteria andPointGoodsStockBetween(Integer value1, Integer value2) {
            addCriterion("point_goods_stock between", value1, value2, "pointGoodsStock");
            return (Criteria) this;
        }

        public Criteria andPointGoodsStockNotBetween(Integer value1, Integer value2) {
            addCriterion("point_goods_stock not between", value1, value2, "pointGoodsStock");
            return (Criteria) this;
        }

        public Criteria andPointGoodsTimeIsNull() {
            addCriterion("point_goods_time is null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsTimeIsNotNull() {
            addCriterion("point_goods_time is not null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsTimeEqualTo(Date value) {
            addCriterion("point_goods_time =", value, "pointGoodsTime");
            return (Criteria) this;
        }

        public Criteria andPointGoodsTimeNotEqualTo(Date value) {
            addCriterion("point_goods_time <>", value, "pointGoodsTime");
            return (Criteria) this;
        }

        public Criteria andPointGoodsTimeGreaterThan(Date value) {
            addCriterion("point_goods_time >", value, "pointGoodsTime");
            return (Criteria) this;
        }

        public Criteria andPointGoodsTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("point_goods_time >=", value, "pointGoodsTime");
            return (Criteria) this;
        }

        public Criteria andPointGoodsTimeLessThan(Date value) {
            addCriterion("point_goods_time <", value, "pointGoodsTime");
            return (Criteria) this;
        }

        public Criteria andPointGoodsTimeLessThanOrEqualTo(Date value) {
            addCriterion("point_goods_time <=", value, "pointGoodsTime");
            return (Criteria) this;
        }

        public Criteria andPointGoodsTimeIn(List<Date> values) {
            addCriterion("point_goods_time in", values, "pointGoodsTime");
            return (Criteria) this;
        }

        public Criteria andPointGoodsTimeNotIn(List<Date> values) {
            addCriterion("point_goods_time not in", values, "pointGoodsTime");
            return (Criteria) this;
        }

        public Criteria andPointGoodsTimeBetween(Date value1, Date value2) {
            addCriterion("point_goods_time between", value1, value2, "pointGoodsTime");
            return (Criteria) this;
        }

        public Criteria andPointGoodsTimeNotBetween(Date value1, Date value2) {
            addCriterion("point_goods_time not between", value1, value2, "pointGoodsTime");
            return (Criteria) this;
        }

        public Criteria andPointGoodsScaleIsNull() {
            addCriterion("point_goods_scale is null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsScaleIsNotNull() {
            addCriterion("point_goods_scale is not null");
            return (Criteria) this;
        }

        public Criteria andPointGoodsScaleEqualTo(Float value) {
            addCriterion("point_goods_scale =", value, "pointGoodsScale");
            return (Criteria) this;
        }

        public Criteria andPointGoodsScaleNotEqualTo(Float value) {
            addCriterion("point_goods_scale <>", value, "pointGoodsScale");
            return (Criteria) this;
        }

        public Criteria andPointGoodsScaleGreaterThan(Float value) {
            addCriterion("point_goods_scale >", value, "pointGoodsScale");
            return (Criteria) this;
        }

        public Criteria andPointGoodsScaleGreaterThanOrEqualTo(Float value) {
            addCriterion("point_goods_scale >=", value, "pointGoodsScale");
            return (Criteria) this;
        }

        public Criteria andPointGoodsScaleLessThan(Float value) {
            addCriterion("point_goods_scale <", value, "pointGoodsScale");
            return (Criteria) this;
        }

        public Criteria andPointGoodsScaleLessThanOrEqualTo(Float value) {
            addCriterion("point_goods_scale <=", value, "pointGoodsScale");
            return (Criteria) this;
        }

        public Criteria andPointGoodsScaleIn(List<Float> values) {
            addCriterion("point_goods_scale in", values, "pointGoodsScale");
            return (Criteria) this;
        }

        public Criteria andPointGoodsScaleNotIn(List<Float> values) {
            addCriterion("point_goods_scale not in", values, "pointGoodsScale");
            return (Criteria) this;
        }

        public Criteria andPointGoodsScaleBetween(Float value1, Float value2) {
            addCriterion("point_goods_scale between", value1, value2, "pointGoodsScale");
            return (Criteria) this;
        }

        public Criteria andPointGoodsScaleNotBetween(Float value1, Float value2) {
            addCriterion("point_goods_scale not between", value1, value2, "pointGoodsScale");
            return (Criteria) this;
        }

        public Criteria andIsUpperIsNull() {
            addCriterion("is_upper is null");
            return (Criteria) this;
        }

        public Criteria andIsUpperIsNotNull() {
            addCriterion("is_upper is not null");
            return (Criteria) this;
        }

        public Criteria andIsUpperEqualTo(Integer value) {
            addCriterion("is_upper =", value, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperNotEqualTo(Integer value) {
            addCriterion("is_upper <>", value, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperGreaterThan(Integer value) {
            addCriterion("is_upper >", value, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_upper >=", value, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperLessThan(Integer value) {
            addCriterion("is_upper <", value, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperLessThanOrEqualTo(Integer value) {
            addCriterion("is_upper <=", value, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperIn(List<Integer> values) {
            addCriterion("is_upper in", values, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperNotIn(List<Integer> values) {
            addCriterion("is_upper not in", values, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperBetween(Integer value1, Integer value2) {
            addCriterion("is_upper between", value1, value2, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperNotBetween(Integer value1, Integer value2) {
            addCriterion("is_upper not between", value1, value2, "isUpper");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}